'''
小明和小美都爱跑步
小明体重 75 公斤
小美体重 45 公斤
每次跑步会减肥 0.5 公斤
每次吃东西体重增加 1 公斤

'''


class Person(object):
    def __init__(self,name,weight) -> None:
        self.name = name
        self.weight = weight

    def run(self):
        self.weight -=0.5

    def eat(self):
        self.weight +=1

xiaoming = Person('小明',80)
xiaoming.run()
xiaoming.run()

print('{}现在的体重是{}'.format(xiaoming.name,xiaoming.weight))

xiaomei = Person('小美',80)
xiaomei.run()
xiaomei.eat()

print("{}现在的体重是{}".format(xiaomei.name,xiaomei.weight))